package lab02;

public class Boss {

    String name;
    int hitPoints;
    int attack;

    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }

    public int getHitPoints(){
        return hitPoints;
    }
    public void setHitPoints(int hitPoints){
        this.hitPoints = hitPoints;
    }

    public int getAttack() {
        return attack;
    }
    public void setAttack(int attack) {
        this.attack = attack;
    }
    public void method(){
        System.out.println(name + "正在攻击，攻击力为" + attack);
        System.out.println("当前生命值是:" + hitPoints);
    }
    public void move(){
        System.out.println("移动");
    }
}


